<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
        <?php 
                $baseUrl = Yii::app()->request->baseUrl;
                $themeUrl = Yii::app()->theme->baseUrl;
        ?>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo $themeUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo $themeUrl; ?>/css/print.css" media="print" />
	
        <!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo $themeUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo $themeUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $themeUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
<body>
<div class="container" id="page">
        <div id="nav">
		<div class="wrap">
                        <ul class="left">
                                <li><a href="http://www.experts-vietnam.co.cc/" id="visit_site" target="_blank">Visit Website</a></li>
                        </ul>
                        <ul class="right">
                                <li>
                                    <select>
                                        <option>Việt Nam</option>
                                        <option>English</option>
                                    </select>
                                </li>
                                <li><?php echo 'Welcome'; ?>, <a href="/index.php?r=site/updateprofile"><strong><?php echo Yii::app()->user->name; ?></strong></a>&nbsp;|&nbsp;</li>
                                <li><a href="<?php echo $baseUrl; ?>/index.php?r=site/updatesettings"><?php echo 'Settings'; ?></a>&nbsp;|&nbsp;</li>
                                <li><a href="<?php echo $baseUrl; ?>/index.php?r=user/changepass"><?php echo 'Đổi Mật Khẩu'; ?></a>&nbsp;|&nbsp;</li>
                                <li><a href="<?php echo $baseUrl; ?>/administrator.php/site/logout"><?php echo 'Sign out'; ?></a></li>
                        </ul>
		</div>
			
	</div>
    	<div id="header">
		<div style="float:left; padding-left:45px">
		<a href="#"><img src="<?php echo Yii::app()->theme->baseUrl?>/images/logo_small.png"/></a>
		</div>
		<form id="search-box" method="get" action="#" target="_blank" style="float:left;">
			<input class="topSearchBox" id="topSearchBox" autocomplete="off" type="text" maxlength="2048" name="q" label="Search" placeholder="" aria-haspopup="true" />
			<input type="submit" value="Go" id="searchbutton" class="bebutton" />
		</form>
		<div class="clear"></div>
	</div>
        <div class="site-content">
            <div id="left-sidebar">
                    <?php $this->widget('zii.widgets.CMenu',array(
                            'encodeLabel'=>false,
                            'items'=>array(
                                    array('label'=>'<span id="menu_dashboard" class="micon"></span>Bảng Điều Khiển', 'url'=>array('/site/index')),
//                                    array('label'=>'<span id="menu_content" class="micon"></span>Chuyến Tàu', 'url'=>array('/shiptrip/create'),'visible'=>!Yii::app()->user->isGuest),
//                                    array('label'=>'<span id="menu_taxonomy" class="micon"></span>Ngày Lễ', 'url'=>array('/holiday'),'visible'=>Yii::app()->authManager->checkAccess("admin", Yii::app()->user->id)),
//                                    array('label'=>'<span id="menu_resource" class="micon"></span>Đại Lý', 'url'=>array('/agent'),'visible'=>Yii::app()->authManager->checkAccess("admin", Yii::app()->user->id)),
//                                    array('label'=>'<span id="menu_user" class="micon"></span>Nhân Viên', 'url'=>array('/employee'),'visible'=>Yii::app()->authManager->checkAccess("admin", Yii::app()->user->id)),
//                                    array('label'=>'<span id="menu_caching" class="micon"></span>Người Dùng', 'url'=>array('/user'),'visible'=>Yii::app()->authManager->checkAccess("admin", Yii::app()->user->id)),
                                    array('label'=>'<span id="menu_caching" class="micon"></span>Người Dùng', 'url'=>array('/user')),
                            ),
                    )); ?>
            </div>
            <div id="main-content-zone">
                <div class="page-content">
                    <?php echo $content; ?>
                </div>
            </div>
        </div>
	<div class="clear"></div>
        
        <!-- start footer -->
	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by Saigon Hi-Speed Company.<br/>
		All Rights Reserved.<br/>
                Develop By <a href="http://rongchaua.vn/" target="_bank">Asia Dragon Software Company</a>
	</div>
        <!-- end footer -->
</div>
<!-- end page -->
</body>
</html>
